package com.xbongbong.saas.model;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.UpdateDataEntity;
import com.xbongbong.pro.formdata.pojo.dto.SaasAnalysisDataDTO;
import com.xbongbong.saas.domain.entity.ext.CreditFixedLimitEntityExt;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface CreditFixedLimitModel extends IModel<CreditFixedLimitEntityExt> {

   void insertBatch(List<CreditFixedLimitEntityExt> list, boolean isImport) throws XbbException;

   @Override
   List<CreditFixedLimitEntityExt> findEntitys(Map<String, Object> param);

   Integer getEntityCount(Map<String, Object> param);

   CreditFixedLimitEntityExt getByKey(Long key, String corpid);

   Integer updateBatch(List<UpdateDataEntity> valueList, String corpid) throws XbbException;

   void formatData(SaasAnalysisDataDTO saasAnalysisDataDTO, JSONObject result) throws XbbException;
}
